package com.tyk.bookstore.back.storage.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;


/**
 * @author tyk
 * @description 仓库
 */
@Schema(name = "Warehouse", description = "仓库")
@TableName("warehouse")
@Data
public class WarehouseDo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1;

    @Schema(description = "ID")
    @TableId("id")
    private Long id;

    @Schema(description = "名字")
    @TableField("name")
    private String name;

    @Schema(description = "所在区域")
    @TableField("area_code")
    private Long areaCode;

    @Schema(description = "详细地址")
    @TableField("address")
    private String address;

    @Schema(description = "负责人ID")
    @TableField("user_id")
    private Long userId;

    @Schema(description = "寄件方姓名")
    @TableField("sender_name")
    private String senderName;

    @Schema(description = "寄件方地址")
    @TableField("sender_address")
    private String senderAddress;

    @Schema(description = "寄件方电话")
    @TableField("sender_phone")
    private String senderPhone;

    @Schema(description = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @Schema(description = "修改时间")
    @TableField("update_time")
    private LocalDateTime updateTime;
}
